Operations

The operations controller is responsible for managing long running operations such as scans, deployments and patch downloads. Several POST commands will return a URI reference to the operations controller. You can query the controller to poll for the status of a long running operation. If the operation is complete when the status query is performed, another URI is returned that can be used to ask for the result of the long running operation.

Base URL

        https://<consoleFQDN:port>/st/console/api/v1.0/operations

Supported Requests

Method URL Input Return

DELETE

https://<consoleFQDN:port>/st/console/api/v1.0/operations/{id of long running operation}

 

Success or failure code

https://<consoleFQDN:port>/st/console/api/v1.0/operations/{id of long running operation}/{run as credential id}

 

Success or failure code

GET

https://<consoleFQDN:port>/st/console/api/v1.0/operations/{id of long running operation}

 

Operation status

Input Model

None

Example with Sample Response

Monitor the status of a patch scan.

GET Request

https://<consoleFQDN:port>/st/console/api/v1.0/operations/3608e6f3-3f66-43b0-95db-ae1f50639cad

Sample Response

Copy
{
    "created": "2018-07-23T15:01:04.527Z",
    "lastAction": "2018-07-23T15:01:04.647Z",
    "operation": "PatchScan",
    "percentComplete": 100,
    "resourceLocation": "https://device-name.example.com:3121/st/console/api/v1.0/patch/scans/3608e6f3-3f66-43b0-95db-ae1f50639cad",
    "status": "Succeeded"
}

Other Request Examples

Output Models